package com.le.tester.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * createTime：2024-08-06 13:55
 * description：数据库连接配置
 */
@Configuration
public class DBConfig {

    public static String jdbcDriver;

    public static String dbUrl;

    public static String user;

    public static String pass;


    public String getJdbcDriver() {
        return jdbcDriver;
    }

    public String getDbUrl() {
        return dbUrl;
    }

    public String getUser() {
        return user;
    }

    public String getPass() {
        return pass;
    }

    @Value("${jdbc.driver}")
    public void setJdbcDriver(String driver) {
        jdbcDriver = driver;
    }

    @Value("${db.url}")
    public void setDbUrl(String url) {
        dbUrl = url;
    }

    @Value("${user}")
    public void setUser(String loginUser) {
        user = loginUser;
    }

    @Value("${pass}")
    public void setPass(String passWord) {
        pass = passWord;
    }
}
